package amd.core.textcommand;

/**
 * Representations for all the valid command words for the game
 * along with a string in a particular language.
 * 
 * @author Michael Kolling and David J. Barnes
 * edited by Latifah Dwi Nurachma
 * @version 2006.03.30
 * 2009.08.20
 *
 */
public enum CommandWord {
    // A value for each command word along with its
    // corresponding user interface string.

    SEARCH("search"), QUIT("quit"), HELP("help"), UNKNOWN("?"), NEXT(">"), 
    PREV("<"), LOG("log"), DETAIL("detail"), READ("read"), EXTRACT("extract"), UPLOAD("upload"), RESULT("result");
    // The command string.
    private String commandString;

    /**
     * Initialise with the corresponding command word.
     * @param commandWord The command string.
     */
    CommandWord(String commandString) {
        this.commandString = commandString;
    }

    /**
     * @return The command word as a string.
     */
    @Override
    public String toString() {
        return commandString;
    }
}
